package ACC;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Random;

public class Qiu {
    public static void main(String[] args) {
    List<Integer> l=new ArrayList<>();
    Random r=new Random();
    for(int i=0;i<6;){
        int hong= r.nextInt(33)+1;
        if(!l.contains(hong)){
            l.add(hong);
            i++;
        }
    }
    Collections.sort(l);
    int lan = r.nextInt(16)+1;
    l.add(lan);
    for(Object i:l){
        System.out.print(i+" ");
    }
}
}
